//
//  CRProfileSetCell.m
//  CRChatRoom
//
//  Created by CuiFengshuai on 15/11/25.
//  Copyright © 2015年 SecondGroup. All rights reserved.
//

#import "CRProfileSetCell.h"

@implementation CRProfileSetCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"cell";
    
    CRProfileSetCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        cell = [[CRProfileSetCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    
    return cell;
}

// 重写setFrame 改变cell的宽度
- (void)setFrame:(CGRect)frame {
    frame.size.width = kDefaultLeftViewShowWidth;
    
    [super setFrame:frame];
}

- (void)setItem:(CRSetItem *)item {
    [super setItem:item];
    
    [self.textLabel setTextColor:[UIColor whiteColor]];
    
}

@end
